
#include <cstdio>
#include <BViewer>
#include <BThread>
#include <BSurface>
#include <BSphere>
#include <BCamera>
#include <BViewer>
#include <BScene>
#include <BProgram>
#include <BMaterial>
#include <BHBoxLayout>
#include <BApplication>
#include <BSphereHandler>
#include <BMainWindow>
#include <BDialog>

#include "MainWindow.h"

int main(int argc, char** argv)
{
	BApplication app;
	app.SetCurrentPath(BString(argv[0]).path());
	app.setStyleSheet("data/style/viewer.css");

	MainWindow window;
	//window.setFrameless(true);
	window.setTitle(argv[0]);
	window.setSize(1200, 720);
	window.setMargin(2, 2, 2, 2);
	window.show();

	if (argc > 1)
	{
		const char* fileName = argv[1];
		window.openFile(fileName);
	}

	return app.execute();
}
